package css.sword.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangke
 * @since 2018-09-22
 */
public class DfsTransferStatus extends Model<DfsTransferStatus> {

    private static final long serialVersionUID = 1L;

    @TableId("ID")
    private Long id;

    @TableField("BUSSINESS_ID")
    private String bussinessId;

    @TableField("SAVE_PATH")
    private String savePath;

    @TableField("MD5_PATH")
    private String md5Path;

    @TableField("SAVE_TIME")
    private String saveTime;

    @TableField("CREATE_DATE")
    private LocalDateTime createDate;

    @TableField("FILE_NAME")
    private String fileName;

    @TableField("USER_DFS_ID")
    private String userId;
/*
    @TableField("USER_ID")
    private String userId;
*/

    @TableField("SUCCESS_FLAG")
    private String successFlag;

    @TableField("MEMO")
    private String memo;

    @TableField("MODULE_NAME")
    private String moduleName;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBussinessId() {
        return bussinessId;
    }

    public void setBussinessId(String bussinessId) {
        this.bussinessId = bussinessId;
    }

    public String getSavePath() {
        return savePath;
    }

    public void setSavePath(String savePath) {
        this.savePath = savePath;
    }

    public String getMd5Path() {
        return md5Path;
    }

    public void setMd5Path(String md5Path) {
        this.md5Path = md5Path;
    }

    public String getSaveTime() {
        return saveTime;
    }

    public void setSaveTime(String saveTime) {
        this.saveTime = saveTime;
    }

    public LocalDateTime getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDateTime createDate) {
        this.createDate = createDate;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getSuccessFlag() {
        return successFlag;
    }

    public void setSuccessFlag(String successFlag) {
        this.successFlag = successFlag;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DfsTransferStatus{" +
        "id=" + id +
        ", bussinessId=" + bussinessId +
        ", savePath=" + savePath +
        ", md5Path=" + md5Path +
        ", saveTime=" + saveTime +
        ", createDate=" + createDate +
        ", fileName=" + fileName +
        ", userId=" + userId +
        ", successFlag=" + successFlag +
        ", memo=" + memo +
        ", moduleName=" + moduleName +
        "}";
    }
    @Override
    public boolean equals(Object obj){
        if (obj==null){
            return false;
        }else{
            if (obj instanceof DfsTransferStatus){
                DfsTransferStatus c = (DfsTransferStatus)obj;
                if (c.bussinessId.equals(this.bussinessId) && c.savePath.equals(this.savePath) ){
                   return true;
                }
            }
        }
        return false;
    }
}
